05. Types
一般来说,使用标准的类型就足以体验顺畅的校验和解析功能了。不过 Pydantic 也补充提供了一系列有用的类型。
The following sections describe the types supported by Pydantic.
- Standard Library Types — types from the Python standard library.
- Strict Types — types that enable you to prevent coercion from compatible types.
- Custom Data Types — create your own custom data types.
- Field Type Conversions — strict and lax conversion between different field types.